﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.BMQ
{
    /// <summary>
    /// BMQ消息类型
    /// </summary>
    public class BMQMessageTypes
    {
        /// <summary>
        /// 订阅请求
        /// </summary>
        public const byte SubReq = 1;

        /// <summary>
        /// 订阅响应
        /// </summary>
        public const byte SubRes = 2;

        /// <summary>
        /// 取消订阅请求
        /// </summary>
        public const byte UnsubReq = 3;

        /// <summary>
        /// 取消订阅响应
        /// </summary>
        public const byte UnsubRes = 4;

        /// <summary>
        /// 心跳包请求
        /// </summary>
        public const byte HeartReq = 5;

        /// <summary>
        /// 心跳包响应
        /// </summary>
        public const byte HeartRes = 6;

        /// <summary>
        /// 文本消息
        /// </summary>
        public const byte TextMessage = 7;

        /// <summary>
        /// 二进制数组消息
        /// </summary>
        public const byte BlobMessage = 8;


    }
}
